package com.whcoding.test.example;

import cn.hutool.core.io.resource.ClassPathResource;
import org.apache.ibatis.io.ResolverUtil;

import java.io.File;

/**
 * @program: spring-boot-learning
 * @description:
 * @author: whcoding
 * @create: 2022-07-27 18:21
 **/
public class ExampleDemo {

	public static void main(String[] args) {

		System.out.println(ResolverUtil.Test.class.getResource("/"));
		System.out.println(new File("").getAbsolutePath());

		ClassPathResource resource = new ClassPathResource("json/dept.json");
		System.out.println("____________________________");
		System.out.println(resource.getPath());
	}
}
